package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.product.model.BaseAttrInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * title:
 * author: Gyh
 * date:2023-04-16 14:53
 * Description:
 */
public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {

    //根据多个三级分类的id查询当前分类下平台属性的列表
    List<BaseAttrInfo> getAttrInfoList(@Param("category1Id") Long category1Id,@Param("category2Id") Long category2Id,@Param("category3Id") Long category3Id);

    /**
     * 根据skuId 获取平台属性数据
     * @param skuId
     * @return
     */
    List<BaseAttrInfo> getAttrListBySkuId(@Param("skuId") Long skuId);
}
